using System;
using System.Collections.Generic;
using DAL;
using Entity;

namespace Business
{
	public class InPanelBusiness
	{
		#region code CMS
        public static List<InPanel> GetInPanelList()
        {
		    var result = FreshCmsDataAccessProvider.InPanel.GetInPanelList();
		    return result;
        }
        
		public static List<InPanel> GetInPanelListByPaging(int pageIndex, int pageSize, ref int totalRecord)
        {
		    var result = FreshCmsDataAccessProvider.InPanel.GetInPanelListByPaging(pageIndex, pageSize, ref totalRecord);
		    return result;
        }

        public static InPanel GetInPanelById(int panelId)
        {
		    var result = FreshCmsDataAccessProvider.InPanel.GetInPanelById(panelId);
            return result;
        }

        public static int InsertInPanel(InPanel InPanel)
        {
            var result = FreshCmsDataAccessProvider.InPanel.InsertInPanel(InPanel);
            return result;
        }

        public static int UpdateInPanel(InPanel InPanel)
        {
            var result = FreshCmsDataAccessProvider.InPanel.UpdateInPanel(InPanel);
            return result;
        }

        public static int DeleteInPanel(int panelId)
        {
            var result = FreshCmsDataAccessProvider.InPanel.DeleteInPanel(panelId);
            return result;
        }
		#endregion
	}
}